class FatherPerson{
    constructor(name,age){
        this.name = name
        this.age = age
    }
    test(){
        console.log(`${this.name}say hello`)
    }
}
class Aperson extends FatherPerson{
    constructor(name,age,score){
        super(name,age)
        this.score = score
    }
    test(){
        console.log(`${this.name}say hello,${ this.name} of score is ${ this.score }`)
    }
}
let a = new FatherPerson("xhh1",18)
console.log(a)
let b = new Aperson("xhh2",20,100)
console.log(b)
export default{
    FatherPerson,
    Aperson
}
